/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.service.bpa;

import com.plian.system.entity.bpa.*;
import com.plian.system.entity.pf.AppraisalIndex;
import com.plian.system.entity.pf.BusinessAudit;
import com.plian.system.entity.pf.BusinessReplenish;
import com.plian.system.mybatis.base.BaseService;

import java.math.BigDecimal;
import java.util.List;

/**
 * 服务类
 *
 * @author
 * @since 2019-09-27
 */
public interface IOperatingPerformanceService extends BaseService<BusinessReplenish> {

//    /** TODO DEL
//     * 经营业绩考核表
//     *
//     * @param businessReplenishDTO
//     * @return
//     */
//    R<ReportReturnVO> summary(BusinessReplenishDTO businessReplenishDTO);

//    /**
//     * @Author: Take-off
//     * @Description: //TODO 确定分项得分
//     * @Date: 9:54 AM 2023/2/6
//     * @Param: [completeValue, bpaFinancialPerformanceGears, bpaIndustryCreditConfigs, bpaFinancialPerformances, appraisalIndex]
//     * @return: java.math.BigDecimal
//     **/
//    BigDecimal makeSureScores(BigDecimal completeValue, List<BpaFinancialPerformanceGear> bpaFinancialPerformanceGears, List<BpaIndustryCreditConfig> bpaIndustryCreditConfigs,
//                              List<BpaFinancialPerformance> bpaFinancialPerformances, String industryCode, String standardCode,
//                              AppraisalIndex appraisalIndex, OperatingPerformanceReportDTO businessIndicatorsReportDTO);


    /**
     * 得到分项得分
     *
     * @param completeValue
     * @param businessAssessmentGearList
     * @param businessAssessmentScoreList
     * @param businessAssessmentList
     * @param appraisalIndex
     * @return
     */
    BigDecimal newMakeSureScores(String orgId, String year, BusinessAudit businessAudit, BigDecimal completeValue, List<BusinessAssessmentGear> businessAssessmentGearList,
                                 List<BusinessAssessmentScore> businessAssessmentScoreList, List<BusinessAssessment> businessAssessmentList,
                                 BpaIndustryStandardConfig unitIndustryStandardConfig, AppraisalIndex appraisalIndex);


    /**
     * 根据年份查询当前单位的行业类型
     *
     * @return java.util.List<java.lang.String>
     **/
    BpaIndustryStandardConfig getUnitIndustryStandardConfig(String year, String orgId);

//    /**
//     * 获取当前年份，指标在财务绩效中的指标类型
//     *
//     * @param
//     * @return java.lang.String
//     **/
//    String getCurrAppraisalIndexStandardConfig(Long indicatorsId, String year);
}
